folder_path="./context"
if [ ! -d "$folder_path" ]; then
    mkdir -p "$folder_path"
fi

if [ ! -f "./context/node-v14.9.0-linux-x64.tar.gz" ]; then
    curl -o ./context/node-v14.9.0-linux-x64.tar.gz -L https://mirrors.huaweicloud.com/nodejs/v14.9.0/node-v14.9.0-linux-x64.tar.gz
fi

if [ ! -f "./context/jdk-21.0.2_linux-x64_bin.tar.gz" ]; then
    curl -o ./context/jdk-21.0.2_linux-x64_bin.tar.gz -L https://d6.injdk.cn/openjdk/openjdk/21/openjdk-21.0.2_linux-x64_bin.tar.gz
fi

if [ ! -f "./context/jdk-17.0.1_linux-x64_bin.tar.gz" ]; then
    curl -o ./context/jdk-17.0.1_linux-x64_bin.tar.gz -L https://d6.injdk.cn/openjdk/openjdk/17/openjdk-17.0.1_linux-x64_bin.tar.gz
fi

if [ ! -f "./context/jdk-11+28_linux-x64_bin.tar.gz" ]; then
    curl -o ./context/jdk-11+28_linux-x64_bin.tar.gz -L https://d6.injdk.cn/openjdk/openjdk/11/openjdk-11+28_linux-x64_bin.tar.gz
fi

folder_path="./web"
if [ ! -d "$folder_path" ]; then
    mkdir -p "$folder_path"
fi

folder_path="./daemon"
if [ ! -d "$folder_path" ]; then
    mkdir -p "$folder_path"
fi